home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Brotikasten
/
BROTCD01.iso
/
c128
/
c16.d64
/
cp_m transdoc
< prev
next >
Wrap
Text File
|
1995-08-08
|
3KB
|
80 lines
C128 to CP/M Memory Transfer Technique
The following technique has been mentioned in several messages on the TPUG and
Commodore sigs in the past month, but I am certain that many members may have
missed it. Therefore I am uploading these instructions so that all may have
access to this relatively simple and fast technique for transfering binary CP/M
files to your CP/M disks.
I must appologize for not giving proper credit to the individual who first
posted this techniques in the SIGS, but the name escapes me at this time.
Please note that this technique should NOT be used to transfer ASCII text type
files from C64 or C128 downloads. The reason is that these types of files have
the linefeeds stripped off when downloaded in this environment. Linefeeds are
required by CP/M and thus any files transferred in this manner which are not
binary type formats will not be usable with this method. CPM271.IMG in this
sig may be used to transfer this type of file to your CP/M disks.
Steps to follow to transfer binary CP/M files to CP/M disk:
1. If the file is greater than 50K or so, forget it, you don't have enough
memory for this technique. Use CPM271.IMG instead.
2. Download the file to your C64/C128 disk as a prg file.
3. In C128 mode, issue the following command:
bload"filename",b1,p7170
This loads all of the file into bank 1 of memory EXCEPT the first two bytes
since BLOAD treats them as a load address (prg file).
4. Get the first two bytes of the file by running the following short basic
program:
10 open2,8,2,"filename,p,r"
20 get#2,a$:ifa$=""thena$=chr$(0)
30 bank1:poke 7168,asc(a$)
40 get#2,a$:ifa$=""thena$=chr$(0)
50 bank1:poke 7169,asc(a$)
60 close2
5. Enter the monitor with the 'monitor' command.
6. Use m 11c00 to begin looking for the eof address for the file. You can
a lot of time here by estimating where it is (number of blocks on disk
times 256 bytes). Otherwise, keep using the 'm' command until you have
the eof address (in hex). Be sure to look at bank 1 only!
7. Use x command to exit the monitor.
8. Place CP/M system disk in drive.
9. Use BOOT command to boot your CP/M system.
10. Place CP/M disk with the SAVE command on it (back side of original CP/M
disk) in the drive.
11. Enter SAVE command at A> prompt. Nothing will appear to happen except
command is loaded from disk.
12. Enter SAVE command again.
13. Answer prompt with E:filename.ext, 1c00 for start address, and the end
address you determined from the monitor procedure (in hex).
14. Insert the CP/M formatted disk you wish to save the file on at the E disk
prompt and hit return.
15. Viola! The file is now on your CP/M disk.
I hope that this procedure is of use to all of you who are hungry for CP/M
software. There is a wealth of excellent public domain CP/M software online
here in the CP/MIG and KAYPRO SIGS. Have fun!
Mike McLawhorn